package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.DestinationAlltheme;
import cn.wolfcode.luowowo.article.mapper.DestinationAllthemeMapper;
import cn.wolfcode.luowowo.article.service.IDestinationAllthemeService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class DestinationAllthemeServiceImpl implements IDestinationAllthemeService {

    @Autowired
    private DestinationAllthemeMapper DestinationAllthemeMapper;
    public List<DestinationAlltheme> list() {
        return DestinationAllthemeMapper.selectAll();
    }

    public List<DestinationAlltheme> listByParent(Long themeId) {
        return DestinationAllthemeMapper.selectAllByThemId(themeId);
    }
}
